package cn.hxsteel.storage.model.bo;

import java.util.ArrayList;
import java.util.List;

import cn.hxsteel.storage.model.vo.ActionVO;

/**
 * 权限的业务类
 */
public class PurviewBO
{
    private String    id;
    private int       icon;
    private String    name = "";
    private String    uri  = "";
    private int       rank;
    private int       array;
    private boolean   lockState;
    PurviewBO         parentModule;
    List< PurviewBO > childModule;
    List< ActionVO > action;
    
    /**
     * 
     */
    public String getId()
    {
	return id;
    }
    
    /**
     * 
     */
    public void setId( String id )
    {
	this.id = id;
    }
    
    /**
     * 
     */
    public int getIcon()
    {
	return icon;
    }
    
    /**
     * 
     */
    public void setIcon( int icon )
    {
	this.icon = icon;
    }
    
    /**
     * 
     */
    public String getName()
    {
	return name;
    }
    
    /**
     * 
     */
    public void setName( String name )
    {
	this.name = name;
    }
    
    /**
     * 
     */
    public String getUri()
    {
	return uri;
    }
    
    /**
     * 
     */
    public void setUri( String uri )
    {
	this.uri = uri;
    }
    
    /**
     * 
     */
    public int getRank()
    {
	return rank;
    }
    
    /**
     * 
     */
    public void setRank( int rank )
    {
	this.rank = rank;
    }
    
    /**
     * 
     */
    public int getArray()
    {
	return array;
    }
    
    /**
     * 
     */
    public void setArray( int array )
    {
	this.array = array;
    }
    
    /**
     * 
     */
    public boolean isLockState()
    {
	return lockState;
    }
    
    /**
     * 
     */
    public void setLockState( boolean lockState )
    {
	this.lockState = lockState;
    }
    
    /**
     * 
     */
    public PurviewBO getParentModule()
    {
	return parentModule;
    }
    
    /**
     * 
     */
    public void setParentModule( PurviewBO parentModule )
    {
	this.parentModule = parentModule;
    }
    
    /**
     * 
     */
    public List< PurviewBO > getChildModule()
    {
	if ( childModule == null )
	{
	    childModule = new ArrayList< PurviewBO >();
	}
	return childModule;
    }
    
    /**
     * 
     */
    public void setChildModule( List< PurviewBO > childModule )
    {
	this.childModule = childModule;
    }
    
    /**
     * 
     */
    public List< ActionVO > getAction()
    {
	if ( action == null )
	{
	    action = new ArrayList< ActionVO >();
	}
	return action;
    }
    
    /**
     * 
     */
    public void setAction( List< ActionVO > action )
    {
	this.action = action;
    }
}